/*
** usual.c for  in /home/massro_a//zappy-2011/map
** 
** Made by ancet massrouf
** Login   <massro_a@epitech.net>
** 
** Started on  Tue Jul  5 03:03:48 2011 ancet massrouf
** Last update Tue Jul  5 03:38:47 2011 ancet massrouf
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "usuals.h"

void		a(char c)
{
  write(1, &c, 1);
}
void		norme_a()
{
  int		i;
  i = 0;

   while(i < 10)
    {
      a(' ');
      i++;
    }
}
void		b(char *str)
{
  int		i = 0;

  while(str[i] != '\0')
    {
      a(str[i]);
      norme_a();
      i++;
    }
}
void		aff_tab(char **tab)
{
  int		i = 0;

  printf("%s\n", "etat      |nourriture|linemate  |deraumere |sigur     |mendiane  |phiras    |thystame");
  while(tab[i] != NULL)
    {
      b(tab[i]);
      i++;
      a('\n');
    }
}

